home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Pascal Super Library
/
Pascal Super Library (CW International)(1997).bin
/
LIBRARY
/
DMTDEMOS
/
GETDRVS.DEM
< prev
next >
Wrap
Text File
|
1994-07-02
|
460b
|
27 lines
program GetDrvsSample;
uses crt, DMT;
var
LogDrvs : ListOfDrvs; { The ListOfDrvs data type is defined in the DMT unit }
Index,
DrvsCount : byte;
DrvLetter : char;
begin
Color( 7, 0 );
clrscr;
GetDrvs( LogDrvs, DrvsCount ); { Call GetDrvs procedure }
write( 'Available logical drives -> [ ' );
for Index := 1 to DrvsCount do
write( LogDrvs[ Index ], ': ' );
writeln( ']' );
GetEnter;
end.